
const home=()=>import('../../views/home/home')//使用懒加载的方式
const category=()=>import('../../views/category/category')//使用懒加载的方式
const profile=()=>import('../../views/profile/profile')//使用懒加载的方式
const cart=()=>import('../../views/cart/cart')//使用懒加载的方式
const hotSale=()=>import('../../views/home/hotSale/hotSale')//使用懒加载的方式
const search=()=>import('../../views/home/search/search')
const message=()=>import('../../views/home/message/message')
const goodsDetail=()=>import('../../views/home/goodsDetail/goodsDetail')
const newGoods=()=>import('../../views/home/newGoods/newGoods')
const recommend=()=>import('../../views/home/recommend/recommend')
const discount=()=>import('../../views/home/discount/discount')
const spring=()=>import("../../views/home/spring/spring")
const summer=()=>import("../../views/home/summer/summer")
const autumn=()=>import("../../views/home/autumn/autumn")
const winter=()=>import("../../views/home/winter/winter")
const comment=()=>import("../../views/home/comment/comment")
const position=()=>import("../../views/home/position/position")

const homeRoute=[
    {
        path:'',
        redirect:'/home'
      },
      {
        path:'/home',
        component:home,
      },
      {
        path:'/profile',
        component:profile
      },
      {
        path:'/category',
        component:category
      },
      {
        path:'/cart',
        component:cart
      },
      {
        path:'/hotSale',
        component:hotSale
      },
      {
          path:'/search',
          component:search
      },
      {
        path:'/message',
        component:message
    },{
      path:'/goodsDetail',
      component:goodsDetail

    },
    {
        path:'/newGoods',
        component:newGoods

    },

    {
        path:'/discount',
        component:discount

    },
    {
        path:'/recommend',
        component:recommend
    },
    {
        path:'/spring',
        component:spring
    },
    {
        path:'/summer',
        component:summer
    },
    {
        path:'/autumn',
        component:autumn
    },
    {
        path:'/winter',
        component:winter
    },
    {

        path:'/comment',
        component:comment

    },
    {
      
      path:'/position',
      component:position
    }

]
export default homeRoute
